package equipment_kind

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type EquipmentKindRouter struct {
}

// InitEquipmentKindRouter 初始化 equipmentKind表 路由信息
func (s *EquipmentKindRouter) InitEquipmentKindRouter(Router *gin.RouterGroup) {
	equipmentKindRouter := Router.Group("equipmentKind").Use(middleware.OperationRecord())
	equipmentKindRouterWithoutRecord := Router.Group("equipmentKind")
	var equipmentKindApi = v1.ApiGroupApp.EquipmentKindApiGroup.EquipmentKindApi
	{
		equipmentKindRouter.POST("createEquipmentKind", equipmentKindApi.CreateEquipmentKind)             // 新建equipmentKind表
		equipmentKindRouter.DELETE("deleteEquipmentKind", equipmentKindApi.DeleteEquipmentKind)           // 删除equipmentKind表
		equipmentKindRouter.DELETE("deleteEquipmentKindByIds", equipmentKindApi.DeleteEquipmentKindByIds) // 批量删除equipmentKind表
		equipmentKindRouter.PUT("updateEquipmentKind", equipmentKindApi.UpdateEquipmentKind)              // 更新equipmentKind表

	}
	{
		equipmentKindRouterWithoutRecord.GET("findEquipmentKind", equipmentKindApi.FindEquipmentKind)       // 根据ID获取equipmentKind表
		equipmentKindRouterWithoutRecord.GET("getEquipmentKindList", equipmentKindApi.GetEquipmentKindList) // 获取equipmentKind表列表
		equipmentKindRouterWithoutRecord.GET("getEquipmentKindListNo", equipmentKindApi.GetEquipmentKindListNo)
	}
}
